public class A2 {

    public static void main(String[] args) {
        Car motorcycle = new Car();
        Car hand_tractor = new Car();
        Car compact_car = new Car();
        motorcycle.drive(1);
        hand_tractor.drive(3);
        compact_car.drive(2);
    }

}

class Car {

    public void drive(int i) {
        if (i == 1) {
            System.out.println("摩托车");
        }
        if (i == 2) {
            System.out.println("小型汽车");
        }
        if (i == 3) {
            System.out.println("手扶拖拉机");
        }
    }
}
